import request from '@/utils/request'

export const getDevices = (params: any) =>request.post("/getDevices", params)

export const insertDevice = (params: any) =>request.post("/insertDevice", params)

export const deleteDevice = (params: any) =>request.post("/deleteDevice", params)

export const updateDevice = (params: any) =>request.post("/updateDevice", params)


export const getDeviceBasics = (params: any) =>request.post("/getDeviceBasics", params)

export const getDeviceColors = (params: any) =>request.post("/getDeviceColors", params)

export const getDeviceLayouts = (params: any) =>request.post("/getDeviceLayouts", params)
export const getDeviceTypes = (params: any) =>request.post("/getDeviceTypes", params)

export const getDeviceOthersAll = (params: any) =>request.post("/getDeviceOthersAll", params)

/** 设备类型 */
export const updateDeviceType = (params: any) =>request.post("/updateDeviceType", params)

export const deleteDeviceTypes = (params: any) =>request.post("/deleteDeviceTypes", params)

/** 设备布局 */
export const updateDeviceLayout = (params: any) =>request.post("/updateDeviceLayout", params)
export const deleteDeviceLayouts = (params: any) =>request.post("/deleteDeviceLayouts", params)

/** 设备基本信息 */
export const updateDeviceBasics = (params: any) =>request.post("/updateDeviceBasics", params)

export const deleteDeviceBasics = (params: any) =>request.post("/deleteDeviceBasics", params)


/** 设备颜色配置 */
export const updateDeviceColors = (params: any) =>request.post("/updateDeviceColors", params)

export const deleteDeviceColors = (params: any) =>request.post("/deleteDeviceColors", params)


/** 设备属性配置 */
export const getDeviceAttrs = (params: any) =>request.post("/getDeviceAttrs", params)

export const deleteDeviceAttrs = (params: any) =>request.post("/deleteDeviceAttrs", params)

export const updateDeviceAttrs = (params: any) =>request.post("/updateDeviceAttrs", params)


export const testService = (params: any) => request.post("/api.service", params)
export const refresh = (params: any) => request.post("/refresh", params)
export const screenshots = (params: any) => request.post("/screenshots", params) 

export const reboot = (params: any) => request.post("/reboot", params) 

export const shutdown = (params: any) => request.post("/shutdown", params) 

export const udpateApk = (params: any) => request.post("/updateApk", params) 

export const setAutoOpen = (params: any) => request.post("/setAutoOpen", params) 